layui.use(['layer', 'form', 'admin', 'ax'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    var layer = layui.layer;

    // 表单提交事件
    form.on('submit(btnSubmit)', function () {
        $.ajax({
            type: "post",
            url: "/weiXinApi/webserviceIn",
            data: {money: $("#money").val()},
            async: false,
            success: function (data) {
                if (data == "0") {
                    layer.msg("添加成功！", {icon: 2, time: 1000}, function () {
                        window.location.reload();
                    });
                } else {
                    layer.msg("添加失败！", {icon: 2, time: 1000});
                }
            }
        });
    });
});